package mysql

import (
	"gorm.io/gorm"
)

type Video struct {
	gorm.Model
	VideoTitle        string `gorm:"type:varchar(30);comment:视频标题"`
	VideoTitleDetails string `gorm:"type:varchar(80);comment:视频名称"`
	VideoAvatar       string `gorm:"varchar(200);comment:视频封面"`
	VideoAddress      string `gorm:"type:varchar(255);comment:视频地址"`
	VideoStatus       int    `gorm:"type:int(10);comment:视频状态"`
	VideoSort         int    `gorm:"type:int(10);comment:视频排序"`
}

func (v *Video) Create() error {
	return DB.Create(&v).Error
}
